When you create a macro, you can assign a bitmap to the macro button on the toolbar. 
You can add a custom button to any toolbar as long as you assign a macro to the button.

If you create a bitmap for a macro button, the bitmap must meet these requirements:
Dimension = 16 x 16 pixels
Dimension = 32 x 32 pixels (Large Icons mode)
Color = 256 colors
Background color = white
 

To add a Macro with a custom button to the SolidWorks menu:

1.  First copy your custom button graphics file into the icons directory: <install_dir>/SolidWorks/data/user macro icons
     (or you can use one of the ones that SolidWorks provided in this directory)

2.  Next copy the macro file to the Macros directory. If you don't have this set up you should create a folder called "Macros"
     directly under your SolidWorks installation directory <install_dir>/SolidWorks/Macros.
	 If SolidWorks is running when you create the directory or copy the Macro file into the directory, shut down and restart SolidWorks.

3.  With a document open, click Tools, Customize, or right-click in the window border and select Customize.

4.  In the dialog box, on the Commands tab:

         a.  Select Macro in Categories.

         b.  Under Buttons, drag the New Macro Button (person wearing green and green arrow near head) to your desired toolbar location.

5.  In the Customize Macro Button dialog box: 

         a.  Under Appearance:

              i.  Click Choose Image.

              ii.  In the Icon path dialog box, select (the button graphic file you put in the icons directory) or a bitmap image (*.bmp), then click Open.
                   This is the graphics file you copied to <install_dir>/data/user macro icons.
                   Select Preview to see the image in the Icon path dialog box.

              iii.  If necessary, type a Tooltip and Prompt message, which provides a brief description of the function of the tool on the status bar.

          b.  Under Action:

              i.  Click and open the macro you want to use.

              ii.  If necessary, select a Method. When you select a method, only that method runs in the macro. The method is in the form: <module_name>.<method_name>.

              iii.  Click OK.

          c.  Type a key in Shortcut to assign a shortcut key to the macro, if desired.
                If you assign a shortcut key, it appears on the Customize, Keyboard tab in the Tools category.

          d.  Click OK.

6.  Click OK again to close the Customize dialog box.

